{extend name='index/base' /}
{block name='menu'}
<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        权限分配
    </div>
    <ol class="am-breadcrumb">
        <li><a href="#" class="am-icon-home">首页</a></li>
        <li><a href="#">用户管理</a></li>
        <li class="am-active">分配权限</li>
    </ol>
    <div class="tpl-portlet-components">
        <form action="/doqx" method="post">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <input type="hidden" name="uid" value="{$id}">
                        {volist name='data' id='urole'}
                        <label>
                            <input type="checkbox" name="role[]"  value="{$urole.id}"
                                   {if in_array($urole.name,$role)}
                                    checked
                                   {/if}
                            >{$urole.name}
                        </label>
                        {/volist}
                        <br>
                        <button type="submit" class="am-btn am-btn-default am-btn-secondary"><span class="am-icon-save"></span> 保存</button>
                    </div>
                </div>

        </form>
    </div>
</div>
{/block}

